#ifndef FCFS_H
#define FCFS_H

#include <QWidget>
#include<vector>
#include<QDebug>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGroupBox>
#include <QPushButton>
#include <QLineEdit>
#include<QLabel>
#include<QString>
#include <QTimer>
#include<Qpainter>
#include<QPixmap>
#include <iostream>
#include<QQueue>
#include <QPropertyAnimation>

namespace Ui {
   class FCFS;
}

class FCFS : public QWidget
{
    Q_OBJECT

public:
    explicit FCFS(QWidget *parent = 0);
    ~FCFS();
    void timerEvent(QTimerEvent *event);
    void TchangArr();
    void CchangArr();
    void UchangArr();
    void paintbus();
    bool eventFilter(QObject *watched, QEvent *event);
    void ShortDirection(int aim);


private:
    void output();
    void update();


private:
    Ui::FCFS *ui;


};


#endif // FCFS_H
